#ifndef PROTO_H__
#define PROTO_H__

#define KEYPATH  "/etc/services"
#define KEYPROJ   a
#define PATHMAX  1024
#define DATAMAX  1024

enum{
    MSG_PATH = 1;
    MSG_DATA,
    MSG_EOT
};
typedef struct msg_path_st{           //路径包
    long mtype;      /* must be MSG PATH */
    char path[PATHMAX];       /*ASCIIZ带尾0的串*/
}msg_path_t;

typedef struct msg_s2c_st{         //数据包
    long mtype;      /* must be MSG DATA */
    char data [DATAMAX] ;
    int datalen;
    /* datalen > 0  data 
               ==0  eot */

}msg_s2c_t;


#endif